package com.itheima.visitor.dispatch.static_dispatch;

/**
 * @author zzw
 * @date 2025/10/26
 * @description 静态分派
 */
public class Execute {
    public void execute(Animal animal) {
        System.out.println("Animal");
    }

    public void execute(Dog dog) {
        System.out.println("dog");
    }

    public void execute(Cat cat) {
        System.out.println("cat");
    }
}
